home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / init.d / stop-bootlogd-single < prev    next >
Encoding:
Text File  |  2006-10-06  |  647 b   |  35 lines

  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:          stop-bootlogd-single
  4. # Required-Start:    $remote_fs
  5. # Required-Stop:
  6. # Default-Start:     S
  7. # Default-Stop:
  8. # Short-Description: Stop bootlogd in single user mode
  9. # Description:       See the bootlogd script
  10. ### END INIT INFO
  11.  
  12. PATH=/usr/sbin:/usr/bin:/sbin:/bin
  13. NAME=stop-bootlogd-single
  14. DAEMON=/sbin/bootlogd
  15.  
  16. [ -x "$DAEMON" ] || exit 0
  17.  
  18. case "$1" in
  19.   start)
  20.     if [ ! -e /proc/cmdline ] || grep -q '\<single\>' /proc/cmdline
  21.     then
  22.         /etc/init.d/bootlogd stop
  23.     fi
  24.     ;;
  25.   stop|restart|force-reload)
  26.     # No-op
  27.     ;;
  28.   *)
  29.     echo "Usage: $NAME {start|stop|restart|force-reload}" >&2
  30.     exit 3
  31.     ;;
  32. esac
  33.  
  34. :
  35.